﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MngChemical.aspx.cs" Inherits="LDSP.UI.EnterpriseAdmin.ItemDefinition.MngChemical" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" href="../../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../../Scripts/calendar.js"></script>
    <title>化学品查询</title>
    <script type="text/javascript">
        $(function () {
            $('#tre_obj :checkbox').each(function () {
                $(this).bind('click', function () {
                    var n = $(this).parents("table").next('div');
                    var c = this.checked;
                    if (n) {
                        n.find(":checkbox").each(function () {
                            $(this).attr('checked', c);
                        })
                    }
                });
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="mngTitle">
            <span class="mngEmphasis">化学品查询</span>
            <asp:Label ID="TotalRecords" runat="server" Text="" CssClass="searchResultLabel"></asp:Label>
        </div>
        <fieldset>
            <legend>查询</legend>
            <table id="filterArea" class="mngDetail">
                <tr>
                    <td class="itemLabel">
                        查询选择：
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_fields" runat="server" CssClass="itemCtrl">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        查询内容：
                    </td>
                    <td class="itemValue">
                        <asp:TextBox ID="txt_value" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        &nbsp;
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_pageSize" runat="server" OnSelectedIndexChanged="ddl_pageSize_SelectedIndexChanged"
                            Visible="False">
                        </asp:DropDownList>
                        <asp:Button ID="btn_search" runat="server" Text="搜索" OnClick="btn_search_Click" CssClass="mngBtn" />&nbsp;
                        <input type="button" value="重置" onclick="resetFilterCondition('filterArea')" class="mngBtn" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <div class="mngList">
            <asp:Button ID="btn_export" runat="server" Text="导出选中" CssClass="mngBtn" OnClick="btn_export_Click" /><br />
            <asp:Label ID="lbl_result" runat="server" Text=""></asp:Label>
            <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                DataKeyNames="id" OnRowCommand="grd_list_RowCommand" OnRowDataBound="grd_list_RowDataBound"
                BackColor="#666699" BorderColor="#999999" AllowPaging="false" AllowSorting="true"
                CellPadding="3" GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                OnSorting="grd_list_Sorting">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                    ForeColor="white" />
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chb" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="序号" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField DataField="catalog" HeaderText="化学品名录" SortExpression="catalog" ItemStyle-Width="250px">
                    </asp:BoundField>
                    <asp:BoundField DataField="name" HeaderText="化学品名称" SortExpression="name"></asp:BoundField>
                    <asp:BoundField DataField="cas" HeaderText="CAS号" SortExpression="cas" ItemStyle-Width="150px">
                    </asp:BoundField>
                    <asp:BoundField DataField="un" HeaderText="UN号" SortExpression="un" ItemStyle-Width="150px">
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle CssClass="gridlisthead" ForeColor="White" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
